package com.cens.common.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

public class WareConstant {
    @Getter
    @AllArgsConstructor
    public enum PurchaseStatusEnum{
        /**
         * 新建
         */
        CREATED(0,"新建"),
        /**
         * 已分配
         */
        ASSIGNED(1,"已分配"),
        /**
         * 已领取
         */
        RECEIVE(2,"已领取"),
        /**
         * 已完成
         */
        FINISH(3,"已完成"),
        /**
         * 有异常
         */
        HAS_ERROR(4,"有异常"),
        ;
        private int code;
        private String message;
    }

    @Getter
    @AllArgsConstructor
    public enum PurchaseDetailStatusEnum{
        /**
         * 新建
         */
        CREATED(0,"新建"),
        /**
         * 已分配
         */
        ASSIGNED(1,"已分配"),
        /**
         * 采购中
         */
        BUYING(2,"采购中"),
        /**
         * 已完成
         */
        FINISH(3,"已完成"),
        /**
         * 采购失败
         */
        HAS_ERROR(4,"采购失败"),
        ;
        private int code;
        private String message;
    }
}
